home *** CD-ROM | disk | FTP | other *** search
/ CD Fun House 1 / CD Fun House (Wayzata Technology).iso / •The Simulator• / Pharaoh v1.0 ••••• / Pharaoh / Pharaoh.rsrc / CODE_11.txt < prev    next >
Text File  |  1988-04-23  |  19KB  |  337 lines

  1. # near model CODE resource
  2. # jump table entries: 848-848 (1 of them)
  3. export_106:
  4. 00000000  4E56 FE36                link       A6, -0x01CA
  5. 00000004  426D EBF0                clr.w      [A5 - 0x1410]
  6. 00000008  426D EBEE                clr.w      [A5 - 0x1412]
  7. 0000000C  426D EBEC                clr.w      [A5 - 0x1414]
  8. 00000010  42A7                     clr.l      -[A7]
  9. 00000012  3F3C 0082                move.w     -[A7], 0x82
  10. 00000016  486E FF56                pea.l      [A6 - 0xAA]
  11. 0000001A  2F3C FFFF FFFF           move.l     -[A7], 0xFFFFFFFF
  12. 00000020  A97C                     syscall    GetNewDialog
  13. 00000022  201F                     move.l     D0, [A7]+
  14. 00000024  486E FF56                pea.l      [A6 - 0xAA]
  15. 00000028  3F3C 0004                move.w     -[A7], 0x4
  16. 0000002C  486E FF54                pea.l      [A6 - 0xAC]
  17. 00000030  486D FFDE                pea.l      [A5 - 0x22]
  18. 00000034  486E FF44                pea.l      [A6 - 0xBC]
  19. 00000038  A98D                     syscall    GetDialogItem/GetDItem
  20. 0000003A  486E FF56                pea.l      [A6 - 0xAA]
  21. 0000003E  3F3C 0005                move.w     -[A7], 0x5
  22. 00000042  486E FF54                pea.l      [A6 - 0xAC]
  23. 00000046  486D FFE2                pea.l      [A5 - 0x1E]
  24. 0000004A  486E FF44                pea.l      [A6 - 0xBC]
  25. 0000004E  A98D                     syscall    GetDialogItem/GetDItem
  26. 00000050  486E FF56                pea.l      [A6 - 0xAA]
  27. 00000054  3F3C 0007                move.w     -[A7], 0x7
  28. 00000058  486E FF54                pea.l      [A6 - 0xAC]
  29. 0000005C  486D FFE6                pea.l      [A5 - 0x1A]
  30. 00000060  486E FF44                pea.l      [A6 - 0xBC]
  31. 00000064  A98D                     syscall    GetDialogItem/GetDItem
  32. label00000066:
  33. 00000066  487A 02A8                pea.l      [PC + 0x2A8 /* 00000310, value 0x4E56FFFE */]
  34. 0000006A  486E FF54                pea.l      [A6 - 0xAC]
  35. 0000006E  A991                     syscall    ModalDialog
  36. 00000070  0C6E 0002 FF54           cmpi.w     [A6 - 0xAC], 0x2
  37. 00000076  6700 028E                beq        +0x290 /* 00000306 */
  38. 0000007A  0C6E 0004 FF54           cmpi.w     [A6 - 0xAC], 0x4
  39. 00000080  6710                     beq        +0x12 /* 00000092 */
  40. 00000082  0C6E 0005 FF54           cmpi.w     [A6 - 0xAC], 0x5
  41. 00000088  6708                     beq        +0xA /* 00000092 */
  42. 0000008A  0C6E 0007 FF54           cmpi.w     [A6 - 0xAC], 0x7
  43. 00000090  665E                     bne        +0x60 /* 000000F0 */
  44. label00000092:
  45. 00000092  2F2D FFDE                move.l     -[A7], [A5 - 0x22]
  46. 00000096  0C6E 0004 FF54           cmpi.w     [A6 - 0xAC], 0x4
  47. 0000009C  6608                     bne        +0xA /* 000000A6 */
  48. 0000009E  3B7C 0001 EBEC           move.w     [A5 - 0x1414], 0x1
  49. 000000A4  6004                     bra        +0x6 /* 000000AA */
  50. label000000A6:
  51. 000000A6  426D EBEC                clr.w      [A5 - 0x1414]
  52. label000000AA:
  53. 000000AA  3F2D EBEC                move.w     -[A7], [A5 - 0x1414]
  54. 000000AE  A963                     syscall    SetControlValue/SetCtlValue
  55. 000000B0  2F2D FFE2                move.l     -[A7], [A5 - 0x1E]
  56. 000000B4  0C6E 0005 FF54           cmpi.w     [A6 - 0xAC], 0x5
  57. 000000BA  6608                     bne        +0xA /* 000000C4 */
  58. 000000BC  3B7C 0001 EBEE           move.w     [A5 - 0x1412], 0x1
  59. 000000C2  6004                     bra        +0x6 /* 000000C8 */
  60. label000000C4:
  61. 000000C4  426D EBEE                clr.w      [A5 - 0x1412]
  62. label000000C8:
  63. 000000C8  3F2D EBEE                move.w     -[A7], [A5 - 0x1412]
  64. 000000CC  A963                     syscall    SetControlValue/SetCtlValue
  65. 000000CE  2F2D FFE6                move.l     -[A7], [A5 - 0x1A]
  66. 000000D2  0C6E 0007 FF54           cmpi.w     [A6 - 0xAC], 0x7
  67. 000000D8  6608                     bne        +0xA /* 000000E2 */
  68. 000000DA  3B7C 0001 EBF0           move.w     [A5 - 0x1410], 0x1
  69. 000000E0  6004                     bra        +0x6 /* 000000E6 */
  70. label000000E2:
  71. 000000E2  426D EBF0                clr.w      [A5 - 0x1410]
  72. label000000E6:
  73. 000000E6  3F2D EBF0                move.w     -[A7], [A5 - 0x1410]
  74. 000000EA  A963                     syscall    SetControlValue/SetCtlValue
  75. 000000EC  6000 0214                bra        +0x216 /* 00000302 */
  76. label000000F0:
  77. 000000F0  0C6E 0001 FF54           cmpi.w     [A6 - 0xAC], 0x1
  78. 000000F6  6600 020A                bne        +0x20C /* 00000302 */
  79. 000000FA  486D DA06                pea.l      [A5 - 0x25FA]
  80. 000000FE  486D F1B6                pea.l      [A5 - 0xE4A]
  81. 00000102  3F3C 080E                move.w     -[A7], 0x80E
  82. 00000106  A9EB                     syscall    Pack4/FP68K
  83. 00000108  486D F1B6                pea.l      [A5 - 0xE4A]
  84. 0000010C  486E FE36                pea.l      [A6 - 0x1CA]
  85. 00000110  3F3C 0810                move.w     -[A7], 0x810
  86. 00000114  A9EB                     syscall    Pack4/FP68K
  87. 00000116  486E FF56                pea.l      [A6 - 0xAA]
  88. 0000011A  3F3C 0006                move.w     -[A7], 0x6
  89. 0000011E  486E FE42                pea.l      [A6 - 0x1BE]
  90. 00000122  486E FE3E                pea.l      [A6 - 0x1C2]
  91. 00000126  486E FF44                pea.l      [A6 - 0xBC]
  92. 0000012A  A98D                     syscall    GetDialogItem/GetDItem
  93. 0000012C  2F2E FE3E                move.l     -[A7], [A6 - 0x1C2]
  94. 00000130  486E FE44                pea.l      [A6 - 0x1BC]
  95. 00000134  A990                     syscall    GetDialogItemText/GetIText
  96. 00000136  486E FE44                pea.l      [A6 - 0x1BC]
  97. 0000013A  4EAD 02B2                jsr        [A5 + 0x2B2 /* export_82 */]
  98. 0000013E  584F                     addq.w     A7, 4
  99. 00000140  486E FE44                pea.l      [A6 - 0x1BC]
  100. 00000144  4EAD 039A                jsr        [A5 + 0x39A /* export_111 */]
  101. 00000148  584F                     addq.w     A7, 4
  102. 0000014A  4A40                     tst.w      D0
  103. 0000014C  660E                     bne        +0x10 /* 0000015C */
  104. 0000014E  3F3C 044C                move.w     -[A7], 0x44C
  105. 00000152  4EAD 008A                jsr        [A5 + 0x8A /* export_13 */]
  106. 00000156  544F                     addq.w     A7, 2
  107. 00000158  6000 01A8                bra        +0x1AA /* 00000302 */
  108. label0000015C:
  109. 0000015C  4A6D EBEC                tst.w      [A5 - 0x1414]
  110. 00000160  661A                     bne        +0x1C /* 0000017C */
  111. 00000162  4A6D EBEE                tst.w      [A5 - 0x1412]
  112. 00000166  6614                     bne        +0x16 /* 0000017C */
  113. 00000168  4A6D EBF0                tst.w      [A5 - 0x1410]
  114. 0000016C  660E                     bne        +0x10 /* 0000017C */
  115. 0000016E  3F3C 044D                move.w     -[A7], 0x44D
  116. 00000172  4EAD 008A                jsr        [A5 + 0x8A /* export_13 */]
  117. 00000176  544F                     addq.w     A7, 2
  118. 00000178  6000 0188                bra        +0x18A /* 00000302 */
  119. label0000017C:
  120. 0000017C  486E FE44                pea.l      [A6 - 0x1BC]
  121. 00000180  4EAD 012A                jsr        [A5 + 0x12A /* export_33 */]
  122. 00000184  584F                     addq.w     A7, 4
  123. 00000186  486D F990                pea.l      [A5 - 0x670]
  124. 0000018A  486E FF4C                pea.l      [A6 - 0xB4]
  125. 0000018E  3F3C 0810                move.w     -[A7], 0x810
  126. 00000192  A9EB                     syscall    Pack4/FP68K
  127. 00000194  486E FF4C                pea.l      [A6 - 0xB4]
  128. 00000198  486D F9AE                pea.l      [A5 - 0x652]
  129. 0000019C  3F3C 080E                move.w     -[A7], 0x80E
  130. 000001A0  A9EB                     syscall    Pack4/FP68K
  131. 000001A2  514F                     subq.w     A7, 8
  132. 000001A4  486D F9AE                pea.l      [A5 - 0x652]
  133. 000001A8  486F 0004                pea.l      [A7 + 0x4]
  134. 000001AC  3F3C 0810                move.w     -[A7], 0x810
  135. 000001B0  A9EB                     syscall    Pack4/FP68K
  136. 000001B2  514F                     subq.w     A7, 8
  137. 000001B4  486E FF4C                pea.l      [A6 - 0xB4]
  138. 000001B8  486D F1B6                pea.l      [A5 - 0xE4A]
  139. 000001BC  3F3C 080E                move.w     -[A7], 0x80E
  140. 000001C0  A9EB                     syscall    Pack4/FP68K
  141. 000001C2  486D F1B6                pea.l      [A5 - 0xE4A]
  142. 000001C6  486F 0004                pea.l      [A7 + 0x4]
  143. 000001CA  3F3C 0810                move.w     -[A7], 0x810
  144. 000001CE  A9EB                     syscall    Pack4/FP68K
  145. 000001D0  4EAD 00FA                jsr        [A5 + 0xFA /* export_27 */]
  146. 000001D4  504F                     addq.w     A7, 8
  147. 000001D6  4857                     pea.l      [A7]
  148. 000001D8  486D F9AE                pea.l      [A5 - 0x652]
  149. 000001DC  3F3C 080E                move.w     -[A7], 0x80E
  150. 000001E0  A9EB                     syscall    Pack4/FP68K
  151. 000001E2  504F                     addq.w     A7, 8
  152. 000001E4  486D F990                pea.l      [A5 - 0x670]
  153. 000001E8  486D F9AE                pea.l      [A5 - 0x652]
  154. 000001EC  3F3C 0002                move.w     -[A7], 0x2
  155. 000001F0  A9EB                     syscall    Pack4/FP68K
  156. 000001F2  6008                     bra        +0xA /* 000001FC */
  157. 000001F4  0000 0000                ori.b      D0, 0x0
  158. 000001F8  0000 0000                ori.b      D0, 0x0
  159. label000001FC:
  160. 000001FC  487A FFF6                pea.l      [PC - 0xA /* 000001F4, value 0x0, cstring "" */]
  161. 00000200  486D F9AE                pea.l      [A5 - 0x652]
  162. 00000204  3F3C 0808                move.w     -[A7], 0x808
  163. 00000208  A9EB                     syscall    Pack4/FP68K
  164. 0000020A  630E                     bls        +0x10 /* 0000021A */
  165. 0000020C  3F3C 044E                move.w     -[A7], 0x44E
  166. 00000210  4EAD 008A                jsr        [A5 + 0x8A /* export_13 */]
  167. 00000214  544F                     addq.w     A7, 2
  168. 00000216  6000 00EA                bra        +0xEC /* 00000302 */
  169. label0000021A:
  170. 0000021A  4A6D EBEC                tst.w      [A5 - 0x1414]
  171. 0000021E  672C                     beq        +0x2E /* 0000024C */
  172. 00000220  486E FE36                pea.l      [A6 - 0x1CA]
  173. 00000224  486D F9AE                pea.l      [A5 - 0x652]
  174. 00000228  3F3C 080E                move.w     -[A7], 0x80E
  175. 0000022C  A9EB                     syscall    Pack4/FP68K
  176. 0000022E  486E FF4C                pea.l      [A6 - 0xB4]
  177. 00000232  486D F9AE                pea.l      [A5 - 0x652]
  178. 00000236  3F3C 0800                move.w     -[A7], 0x800
  179. 0000023A  A9EB                     syscall    Pack4/FP68K
  180. 0000023C  486D F9AE                pea.l      [A5 - 0x652]
  181. 00000240  486E FE36                pea.l      [A6 - 0x1CA]
  182. 00000244  3F3C 0810                move.w     -[A7], 0x810
  183. 00000248  A9EB                     syscall    Pack4/FP68K
  184. 0000024A  6054                     bra        +0x56 /* 000002A0 */
  185. label0000024C:
  186. 0000024C  4A6D EBEE                tst.w      [A5 - 0x1412]
  187. 00000250  672C                     beq        +0x2E /* 0000027E */
  188. 00000252  486E FE36                pea.l      [A6 - 0x1CA]
  189. 00000256  486D F9AE                pea.l      [A5 - 0x652]
  190. 0000025A  3F3C 080E                move.w     -[A7], 0x80E
  191. 0000025E  A9EB                     syscall    Pack4/FP68K
  192. 00000260  486E FF4C                pea.l      [A6 - 0xB4]
  193. 00000264  486D F9AE                pea.l      [A5 - 0x652]
  194. 00000268  3F3C 0802                move.w     -[A7], 0x802
  195. 0000026C  A9EB                     syscall    Pack4/FP68K
  196. 0000026E  486D F9AE                pea.l      [A5 - 0x652]
  197. 00000272  486E FE36                pea.l      [A6 - 0x1CA]
  198. 00000276  3F3C 0810                move.w     -[A7], 0x810
  199. 0000027A  A9EB                     syscall    Pack4/FP68K
  200. 0000027C  6022                     bra        +0x24 /* 000002A0 */
  201. label0000027E:
  202. 0000027E  4A6D EBF0                tst.w      [A5 - 0x1410]
  203. 00000282  671C                     beq        +0x1E /* 000002A0 */
  204. 00000284  486E FF4C                pea.l      [A6 - 0xB4]
  205. 00000288  486D F1B6                pea.l      [A5 - 0xE4A]
  206. 0000028C  3F3C 080E                move.w     -[A7], 0x80E
  207. 00000290  A9EB                     syscall    Pack4/FP68K
  208. 00000292  486D F1B6                pea.l      [A5 - 0xE4A]
  209. 00000296  486E FE36                pea.l      [A6 - 0x1CA]
  210. 0000029A  3F3C 0810                move.w     -[A7], 0x810
  211. 0000029E  A9EB                     syscall    Pack4/FP68K
  212. label000002A0:
  213. 000002A0  486E FE36                pea.l      [A6 - 0x1CA]
  214. 000002A4  486D F9AE                pea.l      [A5 - 0x652]
  215. 000002A8  3F3C 080E                move.w     -[A7], 0x80E
  216. 000002AC  A9EB                     syscall    Pack4/FP68K
  217. 000002AE  6008                     bra        +0xA /* 000002B8 */
  218. 000002B0  0000 0000                ori.b      D0, 0x0
  219. 000002B4  0000 0000                ori.b      D0, 0x0
  220. label000002B8:
  221. 000002B8  487A FFF6                pea.l      [PC - 0xA /* 000002B0, value 0x0, cstring "" */]
  222. 000002BC  486D F9AE                pea.l      [A5 - 0x652]
  223. 000002C0  3F3C 0808                move.w     -[A7], 0x808
  224. 000002C4  A9EB                     syscall    Pack4/FP68K
  225. 000002C6  6C1C                     bge        +0x1E /* 000002E4 */
  226. 000002C8  3F3C 044F                move.w     -[A7], 0x44F
  227. 000002CC  4EAD 008A                jsr        [A5 + 0x8A /* export_13 */]
  228. 000002D0  544F                     addq.w     A7, 2
  229. 000002D2  486E FF56                pea.l      [A6 - 0xAA]
  230. 000002D6  3F3C 0006                move.w     -[A7], 0x6
  231. 000002DA  4267                     clr.w      -[A7]
  232. 000002DC  3F3C 7FFF                move.w     -[A7], 0x7FFF
  233. 000002E0  A97E                     syscall    SelectDialogItemText/SelIText
  234. 000002E2  601E                     bra        +0x20 /* 00000302 */
  235. label000002E4:
  236. 000002E4  486E FE36                pea.l      [A6 - 0x1CA]
  237. 000002E8  486D F1B6                pea.l      [A5 - 0xE4A]
  238. 000002EC  3F3C 080E                move.w     -[A7], 0x80E
  239. 000002F0  A9EB                     syscall    Pack4/FP68K
  240. 000002F2  486D F1B6                pea.l      [A5 - 0xE4A]
  241. 000002F6  486D DA06                pea.l      [A5 - 0x25FA]
  242. 000002FA  3F3C 0810                move.w     -[A7], 0x810
  243. 000002FE  A9EB                     syscall    Pack4/FP68K
  244. 00000300  6004                     bra        +0x6 /* 00000306 */
  245. label00000302:
  246. 00000302  6000 FD62                bra        -0x29C /* 00000066 */
  247. label00000306:
  248. 00000306  486E FF56                pea.l      [A6 - 0xAA]
  249. 0000030A  A982                     syscall    CloseDialog
  250. 0000030C  4E5E                     unlink     A6
  251. 0000030E  4E75                     rts
  252. 00000310  4E56 FFFE                link       A6, -0x0002
  253. 00000314  48E7 1020                movem.l    -[A7], D3,A2
  254. 00000318  246E 000C                movea.l    A2, [A6 + 0xC]
  255. 0000031C  0C52 0003                cmpi.w     [A2], 0x3
  256. 00000320  662E                     bne        +0x30 /* 00000350 */
  257. 00000322  246E 000C                movea.l    A2, [A6 + 0xC]
  258. 00000326  262A 0002                move.l     D3, [A2 + 0x2]
  259. 0000032A  C67C 00FF                and.w      D3, 0xFF
  260. 0000032E  B67C 000D                cmp.w      D3, 0xD /* '\r' */
  261. 00000332  661C                     bne        +0x1E /* 00000350 */
  262. 00000334  246E 0008                movea.l    A2, [A6 + 0x8]
  263. 00000338  34BC 0001                move.w     [A2], 0x1
  264. 0000033C  303C 0100                move.w     D0, 0x100
  265. label00000340:
  266. 00000340  4CDF 0408                movem.l    D3,A2, [A7]+
  267. 00000344  4E5E                     unlink     A6
  268. 00000346  205F                     movea.l    A0, [A7]+
  269. 00000348  DEFC 000C                add.w      A7, 0xC
  270. 0000034C  3E80                     move.w     [A7], D0
  271. 0000034E  4ED0                     jmp        [A0]
  272. label00000350:
  273. 00000350  4A6D EBEC                tst.w      [A5 - 0x1414]
  274. 00000354  660C                     bne        +0xE /* 00000362 */
  275. 00000356  4A6D EBEE                tst.w      [A5 - 0x1412]
  276. 0000035A  6606                     bne        +0x8 /* 00000362 */
  277. 0000035C  4A6D EBF0                tst.w      [A5 - 0x1410]
  278. 00000360  6704                     beq        +0x6 /* 00000366 */
  279. label00000362:
  280. 00000362  7000                     moveq.l    D0, 0x00
  281. 00000364  60DA                     bra        -0x24 /* 00000340 */
  282. label00000366:
  283. 00000366  246E 000C                movea.l    A2, [A6 + 0xC]
  284. 0000036A  0C52 0003                cmpi.w     [A2], 0x3
  285. 0000036E  6600 00A0                bne        +0xA2 /* 00000410 */
  286. 00000372  246E 000C                movea.l    A2, [A6 + 0xC]
  287. 00000376  1D6A 0005 FFFF           move.b     [A6 - 0x1], [A2 + 0x5]
  288. 0000037C  162E FFFF                move.b     D3, [A6 - 0x1]
  289. 00000380  C67C 00FF                and.w      D3, 0xFF
  290. 00000384  5243                     addq.w     D3, 1
  291. 00000386  45ED EE32                lea.l      A2, [A5 - 0x11CE]
  292. 0000038A  1432 3000                move.b     D2, [A2 + D3.w]
  293. 0000038E  4882                     ext.w      D2
  294. 00000390  C47C 0001                and.w      D2, 0x1
  295. 00000394  670E                     beq        +0x10 /* 000003A4 */
  296. 00000396  162E FFFF                move.b     D3, [A6 - 0x1]
  297. 0000039A  C67C 00FF                and.w      D3, 0xFF
  298. 0000039E  D67C 0020                add.w      D3, 0x20 /* ' ' */
  299. 000003A2  6008                     bra        +0xA /* 000003AC */
  300. label000003A4:
  301. 000003A4  162E FFFF                move.b     D3, [A6 - 0x1]
  302. 000003A8  C67C 00FF                and.w      D3, 0xFF
  303. label000003AC:
  304. 000003AC  1D43 FFFF                move.b     [A6 - 0x1], D3
  305. 000003B0  162E FFFF                move.b     D3, [A6 - 0x1]
  306. 000003B4  C67C 00FF                and.w      D3, 0xFF
  307. 000003B8  B67C 0068                cmp.w      D3, 0x68 /* 'h' */
  308. 000003BC  6610                     bne        +0x12 /* 000003CE */
  309. 000003BE  246E 0008                movea.l    A2, [A6 + 0x8]
  310. 000003C2  34BC 0004                move.w     [A2], 0x4
  311. 000003C6  303C 0100                move.w     D0, 0x100
  312. 000003CA  6000 FF74                bra        -0x8A /* 00000340 */
  313. label000003CE:
  314. 000003CE  162E FFFF                move.b     D3, [A6 - 0x1]
  315. 000003D2  C67C 00FF                and.w      D3, 0xFF
  316. 000003D6  B67C 0066                cmp.w      D3, 0x66 /* 'f' */
  317. 000003DA  6610                     bne        +0x12 /* 000003EC */
  318. 000003DC  246E 0008                movea.l    A2, [A6 + 0x8]
  319. 000003E0  34BC 0005                move.w     [A2], 0x5
  320. 000003E4  303C 0100                move.w     D0, 0x100
  321. 000003E8  6000 FF56                bra        -0xA8 /* 00000340 */
  322. label000003EC:
  323. 000003EC  162E FFFF                move.b     D3, [A6 - 0x1]
  324. 000003F0  C67C 00FF                and.w      D3, 0xFF
  325. 000003F4  B67C 006F                cmp.w      D3, 0x6F /* 'o' */
  326. 000003F8  6610                     bne        +0x12 /* 0000040A */
  327. 000003FA  246E 0008                movea.l    A2, [A6 + 0x8]
  328. 000003FE  34BC 0007                move.w     [A2], 0x7
  329. 00000402  303C 0100                move.w     D0, 0x100
  330. 00000406  6000 FF38                bra        -0xC6 /* 00000340 */
  331. label0000040A:
  332. 0000040A  7000                     moveq.l    D0, 0x00
  333. 0000040C  6000 FF32                bra        -0xCC /* 00000340 */
  334. label00000410:
  335. 00000410  7000                     moveq.l    D0, 0x00
  336. 00000412  6000 FF2C                bra        -0xD2 /* 00000340 */
  337.